package com.xft.rabbitmq.rabbit;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @author xft
 * @date 2018/3/19  10:57
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue helloQueue() {
        return new Queue("hello");
    }

    @Bean
    public Queue xftQueue() {
        return new Queue("xft");
    }

    @Bean
    public Queue ObjectQueue(){
        return new Queue("object");
    }
}
